<?php TPL::output('global/header_landing.tpl.htm'); ?>

<div class="regSection">
<h3 class="regtitle"><span class="reg">已有账号？<a href="account/login/">登录</a></span><b class="b">新用户注册</b></h3>
  <form action="account/ajax/register_process/" method="post" id="register_form">
  <?php if ($this->icode) { ?><input type="hidden" name="icode" id="icode" value="<?php echo $this->icode; ?>"/><?php } ?>
  <?php if ($this->fromuid) { ?>
  	<?php if ($_GET['invite_question_id']) { ?>
  		<input type="hidden" name="invite_question_id" value="<?php echo $_GET['invite_question_id']; ?>"/>
  	<?php } ?>
  <?php } ?>
  <ul class="regmoster" id="reg_moster">
	<li><input type="text" name="user_name" value="<?php echo $_GET['user_name'];?>" id="userName" class="userTxt" title="真实姓名"/><span id="tip_userName"></span></li>
	<li>
	<?php if ($_GET['email']) { ?><input type="hidden" id="userEmail"/><?php } ?>
	<input type="text" name="email" value="<?php echo $_GET['email']; ?>" class="userTxt" title="电子邮箱"<?php if ($_GET['email']) { ?> readonly="true" style="background:#ccc"<?php }else{ ?> id="userEmail"<?php } ?>/><span id="tip_userEmail"></span></li>
	<li><input type="password" name="password" id="userPassword" class="userTxt hide" title="密码"/>
	<input type="text" id="userPasswordx" class="userTxt" title="密码"/><span id="tip_userPassword"></span></li>
	
	<?php if ($this->fromuid) { ?>
	<input type="hidden" name="fromuid" value="<?php echo $this->fromuid;?>" />
	<?php  } ?>
	
	<li<?php if ($this->fromuid || $this->icode || (get_setting('register_seccode') == 'N')) {?> style="display:none;"<?php } ?>><input type="text" name="seccode_verify" id="userCode" class="userTxt yzm" title="验证码"/>
	<span class="elp"><em class="s"><img src="" onclick="this.src = G_BASE_URL + '/account/captcha/rnd-' + Math.random();" id="seccode" /></em><a href="javascript:void(0);" onclick="$('#seccode').click();">换一张</a></span>
	<span id="tip_userCode"></span>
	</li>
    
	<li class="default_cl"><input type="checkbox" name="agreement_chk" value="agree" />我同意<a href="javascript:;" onclick="$.get(G_BASE_URL + '/account/ajax/register_agreement/', function (result) { qAlert(result.err, 800); }, 'json');">用户协议</a>中的条款</li>
    <!--<li><div class="default_error">报错提示</div></li>-->
  </ul>
  </form>
  
</div>
<div class="userLister" id="regLister">
	<a href="#" onclick="ajax_post($('#register_form'), _tips_form_processer); return false;" class="regbut">确认注册</a>
</div>

<?php TPL::output('global/footer.tpl.htm'); ?>
